<?php
class Tag extends CI_Controller {
	
	public function __construct() {
		parent::__construct ();
		$this->load->model('tag_model');
	}
	
	public function update(){
		$uid = $this->session->userdata('user_id');
		
		$tags = $this->input->post('tags');
		
		$this->tag_model->update_focus($uid,explode(' ', $tags));
	}
}

?>